package com.yuxin.wx.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
		validatedBy = {IsMobileValidator.class}
)
public @interface IsMobile {
	boolean required() default true;

	String message() default "手机号码不能为空";

	Class<?>[] groups() default {};

	Class<? extends Payload>[] payload() default {};

}
